<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

    <div class="main-container">
        <html:form  method="post" action="/admin/eventadd">
            <div class="form">
                <div class="form_header">EDIT EVENT</div>
                <div class="form_content">
                    <table>
                        <bean:define id="event" scope="request" name="event" />
                        <tr><td class="title">Event Name: (<span>*</span>)</td></tr>
                        <tr><td><html:text property="eventName" size="35" value="${event.eventName}"/></td></tr>
                        <tr><td class="title">Event Type: (<span>*</span>)</td></tr>
                        <tr><td>
                                <html:select property="eventType">
                                    <html:option value="game">Game</html:option>
                                    <html:option value="seminar">Seminar</html:option>
                                    <html:option value="meeting">Meeting</html:option>
                                </html:select>
                        </td></tr>
                        <tr><td class="title">Event Image: (<span>*</span>)</td></tr>
                        <tr><td><html:text property="eventImage" size="35" value="${event.eventImage}"/></td></tr>
                        <tr><td class="title">Start Date (dd-mm-yyyy): (<span>*</span>)</td></tr>
                        <tr><td><html:text property="startDate" styleId="start_date" size="35" maxlength="10" value="${event.startDate}"/></td></tr>
                        <tr><td class="title">End Date (dd-mm-yyyy): (<span>*</span>)</td></tr>
                        <tr><td><html:text property="endDate"  styleId="end_date"  size="35" maxlength="10" value="${event.endDate}"/></td></tr>
                        <tr><td class="title">Description: (<span>*</span>)</td></tr>
                        <tr><td><html:textarea property="description"  styleId="content" cols="45" rows="7">${event.description}</html:textarea></td></tr>
                        <tr><td>
                                <input type="submit" name="btnSubmit" value="Add Event" class="button" />
                                <input type="reset" value="Cancel" class="button" />
                            </td></tr>
                    </table>
                </div>
            </div>
        </html:form>
    </div>
